﻿using StarsAdmin.Core.Attributes;

namespace StarsAdmin.Core.Models
{
    public class BaseQueryInput
    {
        /// <summary>
        /// 排序字段，默认为创建时间
        /// </summary>
        public string Sort { get; set; } = "CreateDateTime";

        /// <summary>
        /// 顺序，默认为 true
        /// </summary>
        public bool Order { get; set; } = true;

        /// <summary>
        /// 查询条件列表
        /// </summary>
        [QuerySetInput<QueryCondition>]
        public List<QueryCondition> QueryConditions { get; set; } = new List<QueryCondition>();
    }
}